home *** CD-ROM | disk | FTP | other *** search
- MIRROR - A DOS utility
-
-
- This program was written by Rick van Rein on an Amiga 500 under OS 2.0.
- There should be no problems in running on other configs, like OS 1.3.
-
- Copyright notice
-
- It is not allowed to use this program or things deducted from it
- for earning any money at all. (Cannot make it any shorter)
- It is allowed to spread this program on a non-profit bases.
- Of course, this text and the sourcefile should go with it unchanged.
-
- What does it do?
-
- MIRROR is useful when you have to swap between two (hard)disks with
- equal structure over and over again. In my case, this is true
- because I have a partition for programs and another for data on my
- harddisk. These principally have the same directory structure.
- As I use long paths, I had to type a lot to change between program
- and data directory of the same application. This is exactly what
- MIRROR does for me.
-
- Example please?
-
- dh0:Prog/C/CC> Mirror dh0: dh1:
- CD ""
- dh1:Prog/C/CC> _
-
- What if destination dir doesn't exist?
-
- Two possible modes of MIRROR exist to respond to this problem.
- In PASSIVE mode (the default), no directories are created, and MIRROR
- tries to match from the root directory on as far as it can:
-
- dh0:Prog/C/CC/BIN/MINE/YESTERDAY> Mirror dh0: dh1:
- CD ""
- MIRROR cannot exactly match the directories
- dh1:Prog/C/CC> _
-
- The other mode of operation is CREATIVE mode, switched on by adding a
- third word CREATE on the command line:
-
- dh0:Prog/C/CC/BIN/MINE/YESTERDAY> Mirror dh0: dh1: CREATE
- CD ""
- dh1:Prog/C/CC/BIN/MINE/YESTERDAY> _
-
- Here, the "BIN/MINE/YESTERDAY" extension to the path on dh1: was made
- using the CREATIVE mode. Note that it is no problem to create more than
- one level, unlike MakeDir.
-
- Still a lot of work!
-
- Of course you have a pretty static setup of two equally structured
- disks, so you can write a script named "Mirror", like the one that
- goes with this package. Then all you'll have to do is:
-
- dh0:Prog/C/CC/BIN/MINE/YESTERDAY> Mirror
- dh1:Prog/C/CC/BIN/MINE/YESTERDAY> _
-
- This does for you the following:
-
- cd dh1:
- cd Prog
- cd C
- cd CC
- MakeDir BIN
- cd BIN
- MakeDir MINE
- cd MINE
- MakeDir YESTERDAY
- cd YESTERDAY
-
- Now, isn't that sweet?
-
- Have fun with it!
- Rick van Rein.
-
- Internet: vanrein@cs.utwente.nl
-